//
// Created by 33145 on 2023/5/27.
//

#ifndef TINYTINYRPC_CONFIG_H
#define TINYTINYRPC_CONFIG_H

#include <map>
#include <string>

namespace rocket {

  class Config {
  public:

    Config(const char* xmlfile);

    Config();

  public:
    static Config* GetGlobalConfig();
    static void SetGlobalConfig(const char* xmlfile);

  public:
    std::string _log_level;
    std::string _log_file_name;
    std::string _log_file_path;
    int _log_max_file_size {0};
    int _log_sync_inteval {0};   // 日志同步间隔，ms

    int _port {0};
    int _io_threads {0};

  };


}


#endif //TINYTINYRPC_CONFIG_H
